import http from '@/plugins/axios/index.js';
/* 
    用户管理
*/

//根据用户的id查询用户的信息
export const getUserByPage = params => {
  return http(`/user/list`, params).then(res => res);
};

//根据用户的id查询用户的信息
export const getUserBasicInfoById = params => {
  return http(`/user/list${params}`).then(res => res);
};

//根据用户的id查询用户的信息
export const getUserInfoByToken = params => {
  return http(`/admin/user/front/info`, params, {
    method: 'GET'
  }).then(res => res);
};

//根据用户的id查询用户的信息
export const getUserPermissionMenu = params => {
  return http(`/admin/user/front/menus`, params, {
    method: 'GET',
    params
  }).then(res => res);
};

//根据用户的id查询用户的信息
export const getAllMenuList = params => {
  return http(`/admin/user/front/menu/all`, params, {
    method: 'GET'
  }).then(res => res);
};
